<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" type="image/x-icon" href="<?php echo img_url('favicon.ico'); ?>">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title><?php echo $title; ?></title>
<link href="<?php echo css_url('style'); ?>" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="mainPan">
	<div id="leftPan">
		<div id="leftTopPan">
			<a href="#"><img src="<?php echo img_url('logo.png'); ?>" title="GSB" alt="GSB" border="0" /></a>
		</div>
        <div class="inner_copy"></div>
        <ul>
			<?php 
		$user = $this->session->userdata('logged_in');
		if(!empty($user)){
			echo '<div style="margin-left:20px;margin-right:20px;margin-bottom:10px;text-align:center;"><fieldset><legend>Connecté</legend>Bonjour <b>'.$user['prenom'].' '.$user['nom'].'</b>. Vous êtes connecté en tant que <b>'.$user['statut'].'</b></fieldset></div>';
		}
		?>
			<li><h3 align="center">-----Menu-----</h3></li>
			<li><a href="<?php echo base_url() ?>">Accueil</a></li>
			<li><a href="<?php echo base_url() ?>page/info">Informations</a></li>
			<li><a href="<?php echo base_url() ?>page/contact">Contact</a></li>
			<?php
			if(!empty($user)){
				$this->load->view('menu'.$user['statut']);
			}
			else{
			echo '<li><h3 align="center">-----Accès-----</h3></li>';
			echo '<li><a href="'.base_url().'login">Connexion</a></li>';
			}
			?>
        </ul>
	</div>
	<div id="rightPan">
		<h1><br/><span></span> </h1>